package Edchl7;

import com.orion.symphonia3.MessageElement;
import com.orion.symphonia3.RepeatMessageComponent;
import com.orion.symphonia3.BadParameterException;

public class EDC_HL7RepSegQRF extends RepeatMessageComponent{
	
	//Constructor
	public EDC_HL7RepSegQRF(MessageElement elem) {
		super(elem);
	}

	//Methods

	public EDC_HL7SegQRF append() {
		return new EDC_HL7SegQRF(elem.appendElement());
	}

	public EDC_HL7SegQRF item (int index) throws BadParameterException {
		if (index >= getElementCount())
			throw new BadParameterException("Index is out of bounds");
		return new EDC_HL7SegQRF(elem.getElementAt(index));
	}

}
